<!DOCTYPE html>
<html>
<head>
<style>
.grid-container {
  height: 900px;
  display: grid;
  justify-content: right;
  align-content: end;
  align-content: space-evenly;
  grid-template-columns: 50px 50px 150px; /* 制作小于容器的网格 */
  grid-gap: 20px;
  background-color: #2196F3;
  padding: 10px;
}

.grid-container > div {
  background-color: red;
  text-align: left;
  padding: 20px 0;
  font-size: 50px;
}
</style>
</head>
<body>

<h1>justify-content 属性</h1>

<p>请使用 <em>justify-content</em> 属性在容器内对齐网格。</p>

<p>值 "center" 会在容器中间对齐网格：</p>

<div class="grid-container">
  <div>1</div>
  <div>2</div>
  <div>3</div>  
  <div>4</div>
  <div>5</div>
  <div>6</div>  
</div>

</body>
</html>
